/**
 *  Copyright (c) 1997-2013, www.tinygroup.org (luo_guo@icloud.com).
 *
 *  Licensed under the GPL, Version 3.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *       http://www.gnu.org/licenses/gpl.html
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.tinygroup.dbf;

import java.util.List;


/**
 * DBF文档，完整描述一个Dbf文档
 * Created by luoguo on 2014/7/10.
 */
public class DbfDocument {
    /**
     * 文件编码
     */
    private String encode;
    /**
     * 文件头
     */
    private DbfHeader header;
    /**
     * 文件的字段
     */
    private List<DbfField> fields;
    /**
     * 文件的数据
     */
    private DbfDataSet dataSet;
    /**
     * 文件的类型
     */
    private byte type = 3;

    public byte getType() {
        return type;
    }

    public void setType(byte type) {
        this.type = type;
    }

    public List<DbfField> getFields() {
        return fields;
    }

    public String getEncode() {
        return encode;
    }

    public void setEncode(String encode) {
        this.encode = encode;
    }

    public void setFields(List<DbfField> fields) {
        this.fields = fields;
    }

    public DbfDataSet getDataSet() {
        return dataSet;
    }

    public void setDataSet(DbfDataSet dataSet) {
        this.dataSet = dataSet;
    }

    public DbfHeader getHeader() {
        return header;
    }

    public void setHeader(DbfHeader header) {
        this.header = header;
    }
}
